/*
 * Sexo.java
 *
 * Created on October 10, 2007, 9:06 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package petstore.model.enumeration;

/**
 *
 * @author Tom Hayden
 */
public enum Sexo {
    F,
    M;
    
    private static final String[] DESCRIPTION = {"Feminino", "Masculino"};
    
    public String getDescription() {
        return this.DESCRIPTION[this.ordinal()];
    }
    
    public static void main(String[] args) {
        System.out.println(Sexo.F);
        System.out.println(Sexo.valueOf("F").getDescription());
    }
    
}
